package com.evil.application.pojo.dto.permission.control;

import com.evil.common.application.dto.permission.control.ControlPermissionSourceDTO;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.util.Collection;
import java.util.List;

/**
 * 编辑控件权限
 *
 * @date 2023-01-31 17:31
 */
@Data
public class ModifyControlPermissionReqDTO {

    private Long enterpriseId;

    /**
     * 控件权限类型
     */
    @NotNull(message = "controlPermissionSourceDTO not null")
    private ControlPermissionSourceDTO controlPermissionSourceDTO;

    /**
     * 节点控件配置
     */
    @NotNull(message = "controlPermissions not null")
    private List<ControlPermissionDTO> controlPermissions;

    /**
     * 控件id列表
     */
    @NotNull(message = "controlIds not null")
    private Collection<Long> controlIds;
}
